package com.san.hkhospital.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * ClassName:MedUseExample
 * PackageName:com.san.hkhospital.entity
 * Description:
 *
 * @Author:yy
 * @CreatedAt:2024/11/13 19:26
 * 
 */
 
 
public class MedUseExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public MedUseExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMuIdIsNull() {
            addCriterion("mu_id is null");
            return (Criteria) this;
        }

        public Criteria andMuIdIsNotNull() {
            addCriterion("mu_id is not null");
            return (Criteria) this;
        }

        public Criteria andMuIdEqualTo(Integer value) {
            addCriterion("mu_id =", value, "muId");
            return (Criteria) this;
        }

        public Criteria andMuIdNotEqualTo(Integer value) {
            addCriterion("mu_id <>", value, "muId");
            return (Criteria) this;
        }

        public Criteria andMuIdGreaterThan(Integer value) {
            addCriterion("mu_id >", value, "muId");
            return (Criteria) this;
        }

        public Criteria andMuIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("mu_id >=", value, "muId");
            return (Criteria) this;
        }

        public Criteria andMuIdLessThan(Integer value) {
            addCriterion("mu_id <", value, "muId");
            return (Criteria) this;
        }

        public Criteria andMuIdLessThanOrEqualTo(Integer value) {
            addCriterion("mu_id <=", value, "muId");
            return (Criteria) this;
        }

        public Criteria andMuIdIn(List<Integer> values) {
            addCriterion("mu_id in", values, "muId");
            return (Criteria) this;
        }

        public Criteria andMuIdNotIn(List<Integer> values) {
            addCriterion("mu_id not in", values, "muId");
            return (Criteria) this;
        }

        public Criteria andMuIdBetween(Integer value1, Integer value2) {
            addCriterion("mu_id between", value1, value2, "muId");
            return (Criteria) this;
        }

        public Criteria andMuIdNotBetween(Integer value1, Integer value2) {
            addCriterion("mu_id not between", value1, value2, "muId");
            return (Criteria) this;
        }

        public Criteria andMuTimeIsNull() {
            addCriterion("mu_time is null");
            return (Criteria) this;
        }

        public Criteria andMuTimeIsNotNull() {
            addCriterion("mu_time is not null");
            return (Criteria) this;
        }

        public Criteria andMuTimeEqualTo(Date value) {
            addCriterion("mu_time =", value, "muTime");
            return (Criteria) this;
        }

        public Criteria andMuTimeNotEqualTo(Date value) {
            addCriterion("mu_time <>", value, "muTime");
            return (Criteria) this;
        }

        public Criteria andMuTimeGreaterThan(Date value) {
            addCriterion("mu_time >", value, "muTime");
            return (Criteria) this;
        }

        public Criteria andMuTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("mu_time >=", value, "muTime");
            return (Criteria) this;
        }

        public Criteria andMuTimeLessThan(Date value) {
            addCriterion("mu_time <", value, "muTime");
            return (Criteria) this;
        }

        public Criteria andMuTimeLessThanOrEqualTo(Date value) {
            addCriterion("mu_time <=", value, "muTime");
            return (Criteria) this;
        }

        public Criteria andMuTimeIn(List<Date> values) {
            addCriterion("mu_time in", values, "muTime");
            return (Criteria) this;
        }

        public Criteria andMuTimeNotIn(List<Date> values) {
            addCriterion("mu_time not in", values, "muTime");
            return (Criteria) this;
        }

        public Criteria andMuTimeBetween(Date value1, Date value2) {
            addCriterion("mu_time between", value1, value2, "muTime");
            return (Criteria) this;
        }

        public Criteria andMuTimeNotBetween(Date value1, Date value2) {
            addCriterion("mu_time not between", value1, value2, "muTime");
            return (Criteria) this;
        }

        public Criteria andMuNumIsNull() {
            addCriterion("mu_num is null");
            return (Criteria) this;
        }

        public Criteria andMuNumIsNotNull() {
            addCriterion("mu_num is not null");
            return (Criteria) this;
        }

        public Criteria andMuNumEqualTo(Integer value) {
            addCriterion("mu_num =", value, "muNum");
            return (Criteria) this;
        }

        public Criteria andMuNumNotEqualTo(Integer value) {
            addCriterion("mu_num <>", value, "muNum");
            return (Criteria) this;
        }

        public Criteria andMuNumGreaterThan(Integer value) {
            addCriterion("mu_num >", value, "muNum");
            return (Criteria) this;
        }

        public Criteria andMuNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("mu_num >=", value, "muNum");
            return (Criteria) this;
        }

        public Criteria andMuNumLessThan(Integer value) {
            addCriterion("mu_num <", value, "muNum");
            return (Criteria) this;
        }

        public Criteria andMuNumLessThanOrEqualTo(Integer value) {
            addCriterion("mu_num <=", value, "muNum");
            return (Criteria) this;
        }

        public Criteria andMuNumIn(List<Integer> values) {
            addCriterion("mu_num in", values, "muNum");
            return (Criteria) this;
        }

        public Criteria andMuNumNotIn(List<Integer> values) {
            addCriterion("mu_num not in", values, "muNum");
            return (Criteria) this;
        }

        public Criteria andMuNumBetween(Integer value1, Integer value2) {
            addCriterion("mu_num between", value1, value2, "muNum");
            return (Criteria) this;
        }

        public Criteria andMuNumNotBetween(Integer value1, Integer value2) {
            addCriterion("mu_num not between", value1, value2, "muNum");
            return (Criteria) this;
        }

        public Criteria andMuDescIsNull() {
            addCriterion("mu_desc is null");
            return (Criteria) this;
        }

        public Criteria andMuDescIsNotNull() {
            addCriterion("mu_desc is not null");
            return (Criteria) this;
        }

        public Criteria andMuDescEqualTo(String value) {
            addCriterion("mu_desc =", value, "muDesc");
            return (Criteria) this;
        }

        public Criteria andMuDescNotEqualTo(String value) {
            addCriterion("mu_desc <>", value, "muDesc");
            return (Criteria) this;
        }

        public Criteria andMuDescGreaterThan(String value) {
            addCriterion("mu_desc >", value, "muDesc");
            return (Criteria) this;
        }

        public Criteria andMuDescGreaterThanOrEqualTo(String value) {
            addCriterion("mu_desc >=", value, "muDesc");
            return (Criteria) this;
        }

        public Criteria andMuDescLessThan(String value) {
            addCriterion("mu_desc <", value, "muDesc");
            return (Criteria) this;
        }

        public Criteria andMuDescLessThanOrEqualTo(String value) {
            addCriterion("mu_desc <=", value, "muDesc");
            return (Criteria) this;
        }

        public Criteria andMuDescLike(String value) {
            addCriterion("mu_desc like", value, "muDesc");
            return (Criteria) this;
        }

        public Criteria andMuDescNotLike(String value) {
            addCriterion("mu_desc not like", value, "muDesc");
            return (Criteria) this;
        }

        public Criteria andMuDescIn(List<String> values) {
            addCriterion("mu_desc in", values, "muDesc");
            return (Criteria) this;
        }

        public Criteria andMuDescNotIn(List<String> values) {
            addCriterion("mu_desc not in", values, "muDesc");
            return (Criteria) this;
        }

        public Criteria andMuDescBetween(String value1, String value2) {
            addCriterion("mu_desc between", value1, value2, "muDesc");
            return (Criteria) this;
        }

        public Criteria andMuDescNotBetween(String value1, String value2) {
            addCriterion("mu_desc not between", value1, value2, "muDesc");
            return (Criteria) this;
        }

        public Criteria andMoneyIsNull() {
            addCriterion("money is null");
            return (Criteria) this;
        }

        public Criteria andMoneyIsNotNull() {
            addCriterion("money is not null");
            return (Criteria) this;
        }

        public Criteria andMoneyEqualTo(Long value) {
            addCriterion("money =", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotEqualTo(Long value) {
            addCriterion("money <>", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyGreaterThan(Long value) {
            addCriterion("money >", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyGreaterThanOrEqualTo(Long value) {
            addCriterion("money >=", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyLessThan(Long value) {
            addCriterion("money <", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyLessThanOrEqualTo(Long value) {
            addCriterion("money <=", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyIn(List<Long> values) {
            addCriterion("money in", values, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotIn(List<Long> values) {
            addCriterion("money not in", values, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyBetween(Long value1, Long value2) {
            addCriterion("money between", value1, value2, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotBetween(Long value1, Long value2) {
            addCriterion("money not between", value1, value2, "money");
            return (Criteria) this;
        }

        public Criteria andMedIdIsNull() {
            addCriterion("med_id is null");
            return (Criteria) this;
        }

        public Criteria andMedIdIsNotNull() {
            addCriterion("med_id is not null");
            return (Criteria) this;
        }

        public Criteria andMedIdEqualTo(Integer value) {
            addCriterion("med_id =", value, "medId");
            return (Criteria) this;
        }

        public Criteria andMedIdNotEqualTo(Integer value) {
            addCriterion("med_id <>", value, "medId");
            return (Criteria) this;
        }

        public Criteria andMedIdGreaterThan(Integer value) {
            addCriterion("med_id >", value, "medId");
            return (Criteria) this;
        }

        public Criteria andMedIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("med_id >=", value, "medId");
            return (Criteria) this;
        }

        public Criteria andMedIdLessThan(Integer value) {
            addCriterion("med_id <", value, "medId");
            return (Criteria) this;
        }

        public Criteria andMedIdLessThanOrEqualTo(Integer value) {
            addCriterion("med_id <=", value, "medId");
            return (Criteria) this;
        }

        public Criteria andMedIdIn(List<Integer> values) {
            addCriterion("med_id in", values, "medId");
            return (Criteria) this;
        }

        public Criteria andMedIdNotIn(List<Integer> values) {
            addCriterion("med_id not in", values, "medId");
            return (Criteria) this;
        }

        public Criteria andMedIdBetween(Integer value1, Integer value2) {
            addCriterion("med_id between", value1, value2, "medId");
            return (Criteria) this;
        }

        public Criteria andMedIdNotBetween(Integer value1, Integer value2) {
            addCriterion("med_id not between", value1, value2, "medId");
            return (Criteria) this;
        }

        public Criteria andOpIdIsNull() {
            addCriterion("op_id is null");
            return (Criteria) this;
        }

        public Criteria andOpIdIsNotNull() {
            addCriterion("op_id is not null");
            return (Criteria) this;
        }

        public Criteria andOpIdEqualTo(Integer value) {
            addCriterion("op_id =", value, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdNotEqualTo(Integer value) {
            addCriterion("op_id <>", value, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdGreaterThan(Integer value) {
            addCriterion("op_id >", value, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("op_id >=", value, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdLessThan(Integer value) {
            addCriterion("op_id <", value, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdLessThanOrEqualTo(Integer value) {
            addCriterion("op_id <=", value, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdIn(List<Integer> values) {
            addCriterion("op_id in", values, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdNotIn(List<Integer> values) {
            addCriterion("op_id not in", values, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdBetween(Integer value1, Integer value2) {
            addCriterion("op_id between", value1, value2, "opId");
            return (Criteria) this;
        }

        public Criteria andOpIdNotBetween(Integer value1, Integer value2) {
            addCriterion("op_id not between", value1, value2, "opId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}